package thread;

public class Demo23 {
    public static void main(String[] args) throws InterruptedException {
        Object object=new Object();
        System.out.println("wait之前");
        synchronized (object){
            //等待就是释放锁，进入阻塞状态
            object.wait();
        }
        System.out.println("wait 之后");
    }
}
